package com.bsc.rtc.lib.libraries.utils;

import android.app.Activity;
import android.os.Bundle;
import android.widget.Button;

import com.bsc.rtc.lib.libraries.R;

import androidx.constraintlayout.widget.ConstraintLayout;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class SnackbarActivity extends Activity {

    @BindView(R.id.father_cons)
    ConstraintLayout fatherCons;
    @BindView(R.id.snackTest)
    Button snackTest;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_snackbar);
        ButterKnife.bind(this);
    }

    private void update() {
        SnackbarUtil.ShortSnackbar(fatherCons, "wow...", SnackbarUtil.Info).show();
    }

    @OnClick(R.id.snackTest)
    public void onViewClicked() {
        update();
    }
}
